package com.lyf.boot.modules.system.entity.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 角色权限
 * @author Luyufan
 * @date 2025/1/17
 **/
@Data
@Accessors(chain = true)
public class SysRolePermDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 5702687450456662635L;

    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 权限
     */
    @NotNull(message = "权限不能为空")
    private List<Long> permIds;
}
